home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / IDEINST / ST.C < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  541 b   |  42 lines

  1. /* st.c */
  2.  
  3. /*
  4.  * 
  5.  * Error handling code.
  6.  *
  7.  */
  8. #include "defs.h"
  9. #include <gemdefs.h>
  10.  
  11. extern char sbuf[];
  12.  
  13.  
  14. /*
  15.  * Throw up an alert box
  16.  * with the given text.
  17.  *
  18.  */
  19. err(s)
  20. char *s;
  21. {
  22.     graf_mouse(ARROW, 0L);
  23.     form_alert(1, s);
  24.     graf_mouse(HOURGLASS, 0L);
  25.     return ERROR;
  26. }
  27.  
  28.  
  29. /*
  30.  * Error, concatenate the three strings
  31.  * and throw up an alert box.
  32.  *
  33.  */
  34. errs(s1, s2, s3)
  35. char *s1, *s2, *s3;
  36. {
  37.     strcpy(sbuf, s1);
  38.     strcat(sbuf, s2);
  39.     strcat(sbuf, s3);
  40.     return err(sbuf);
  41. }
  42.